import React, { Component } from 'react';
import Header from '../header/header';
import Footer from '@/views/footer/footer';
import { Outlet } from 'react-router-dom';
import config from '@/config';

class Home extends Component {
  render() {
    const bln = config.massage!;

    return bln ? (
      <div style={{ textAlign: 'center', height: '100vh', lineHeight: '100vh' }}>{bln}</div>
    ) : (
      <div>
        <Header></Header>
        <Outlet></Outlet>
        <Footer></Footer>
      </div>
    );
  }
}

export default Home;
